package com.zj.demo01.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.lang.NonNull;

import java.util.Date;

/**
 * @ClassName:AirDTO
 * @author:[开发者名称]
 * @Description:[类的功能描述]
 * @Date:2025/9/3/21:09
 * @Version:1.0
 */
@Data
@Builder
public class AirDTO {
    @NotNull(message = "检测区域不能为空")
    private Integer districtId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "检测时间不能为空")
    private Date monitorTime;
    @NotNull(message = "pm10不能为空")
    private Integer pm10;
    @NotNull(message = "pm25不能为空")
    private Integer pm25;
    @NotBlank(message = "监测站不能为空")
    private String monitoringStation;



}
